import java.io.Serializable;

public class Course implements Serializable {
    private String courseId;
    private String courseName;
    private int credit;

    public Course(String courseId, String courseName, int credit) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.credit = credit;
    }

    public String getCourseId() {
        return courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public int getCredit() {
        return credit;
    }

    @Override
    public String toString() {
        return "课程[课程编号：" + courseId + "，课程名称：" + courseName + "，学分：" + credit + "]";
    }
}